<?php
$sql="select word from ".$BIAOTOU.$table;
$query=mysql_query($sql);
$js = "noWordArr=new Array();";
$k=0;
while($row=mysql_fetch_array($query)){
    $words[]=$row['word'];
	$js.= "\r\n";
    $js.= "noWordArr[".$k."]='".$row['word']."';";
	$k++;
}
$data = "<?php\n return " . var_export($words, true) . ";\n?>";
file_put_contents('../../cache/no_words.php', $data);

file_put_contents('../../data/noWordArr.js',$js);

admin_log('生成屏蔽关键词缓存');
echo '<script>alert("生成屏蔽关键词缓存");history.go(-1);</script>';
?>
